from tkinter import *
root = Tk()
x=int(input())
y=int(input())
k=int(input())
if x+20*k<=500 and y+30*k<=500:
   root.title("it2023")
   root.geometry("500x500")
   canvas=Canvas(bg="white",width=500,height=500)
   canvas.pack(anchor=CENTER,expand=1)
   canvas.create_rectangle(x,y,x+10*k,y+20*k,fill="blue",outline="blue",width=4)
   canvas.create_rectangle(x+10*k,y+10*k,x+20*k,y+30*k,fill="blue",outline="blue",width=4)
   root.mainloop()
else:
    print("Размер фигуры превышает максимальный размер")


